import request from './request.js'

// 导出具体请求


// 获取商品列表
export function indexaction(data){
    return request({
        url:'/search/indexaction',
        method:"GET",
        data
    })
}
// 删除搜索历史记录
export function clearhistory(data){
    return request({
        url:'search/clearhistoryAction',
        method:"POST",
        data
    })
}

// 获取搜索提示
export function helperaction(data){
    return request({
        url:'search/helperaction',
        method:"GET",
        data
    })
}

// 添加搜索历史记录
export function addhistory(data){
    return request({
        url:'search/addhistoryaction',
        method:"POST",
        data
    })
}

// 跳转至对应商品
export function detailaction(data){
    return request({
        url:'goods/detailaction',
        method:"GET",
        data
    })
}